﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SmartSpace.Web;

namespace SmartSpace.WebApp.Modules.Workflow.Pages
{
    public partial class Workflow_Redirect : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string refModule = RequestUtility.GetString(Request, "refmodule");
            Guid refId = RequestUtility.GetGuid(Request, "refid");

            if (refModule.ToUpper() == "OA.LEAVE")
            {
                Response.Redirect("~/Modules/OA/Pages/LeaveRequest-Detail.aspx?ss:dlg=1&&id=" + refId.ToString());
            }
        }
    }
}